package com.mystudy.concurrent.designModel.observerModel;

/**
 * TODO: 订阅端
 *
 * @author acy
 * @since 2019/05/27 20:56
 */
public class ObserverClient {
	public static void main(String[] args) {
		final Subject subject = new Subject();
		BinaryObserver binaryObserver = new BinaryObserver(subject);
		OctalObserver octalObserver = new OctalObserver(subject);
		subject.setState(2);
		System.out.println("subject has changed--------");
		subject.setState(3);
	}
}
